net: hns3: aligning buffer size in SSU to 256 bytes
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 18 Dec 2018 11:37:58 +0000 (19:37 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit54382308d2a7dcae255c782b6d8ba2d22d0c77d2
treeb93c7678672b4ed9ee44365eac8513cea5b8a703
parent226dafb2e2649d3a7fea315063eadbcb26770487
net: hns3: aligning buffer size in SSU to 256 bytes

The hardware expects the buffer size set to SSU is aligned to
256 bytes, this patch aligns the buffer size to 256 byte using
roundup or rounddown function.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic bugfix/arm64/huawei-taishan
Gbp-Pq: Name 0021-net-hns3-aligning-buffer-size-in-SSU-to-256-bytes.patch
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c